package com.chenfan.process;

import com.chenfan.ccp.annotation.Start;
import com.chenfan.ccp.util.start.ApplicationContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author K
 * @date 2021/3/5
 */
@MapperScan("com.chenfan.**.repository.**")
@EnableFeignClients(basePackages = "com.chenfan.*")
@Start
@EnableAsync
@EnableRetry
@ComponentScan(value = {"com.chenfan.*"})
@EnableTransactionManagement
public class CloudProcess {

    public static void main(String[] args) {
        ApplicationContextUtil.run(args);
    }
}
